# 짧은 업로드 URL을 전체 URL로 변환하기

**URL:** <https://meta.discourse.org/t/converting-short-upload-urls-to-full-urls/131760>\
**Category:** Development\
**Created:** [10월 23, 2019, 10:03오후 UTC](https://meta.discourse.org/t/converting-short-upload-urls-to-full-urls/131760 "2019-10-23T22:03:12Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Parker1090](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/parker1090/32/119862_2.png) [@Parker1090](https://meta.discourse.org/u/Parker1090)\
**Post date:** [10월 24, 2019, 8:25오전 UTC](https://meta.discourse.org/t/converting-short-upload-urls-to-full-urls/131760/3 "2019-10-24T08:25:31Z")

</div>

빠른 답변 감사합니다 @michaeld. 오늘 늦게 시도해볼게요 🙂

* * *

PHP로 이 작업을 수행하는 데 관심이 있는 분들을 위해, tuupola의 [base62](https://github.com/tuupola/base62)라는 composer 라이브러리를 사용했습니다.

사용한 코드는 다음과 같습니다:

```php
<?php

$base62 = new Tuupola\Base62(["characters" => Tuupola\Base62::INVERTED]);

/** 파일 확장자를 제외한 원래 파일 이름 설정 */
$s = "r3AYqESanERjladb4vBB7VsMBm6";

/** 디코딩, 16진수로 변환 */
$decoded = $base62->decode($s);

/** 예상 결과: bda2c513e1da04f7b4e99230851ea2aafeb8cc4e */
echo bin2hex($decoded);

```

---

_[View the full topic](https://meta.discourse.org/t/converting-short-upload-urls-to-full-urls/131760)._
